ThinkPHP5


think\console\output\question\Confirmation
library\think\console\output\question\Confirmation.php at line 16

Class Confirmation

Question
└─Confirmation

public class Confirmation
extends Question


Constructor Summary
void

__construct(string question, bool default, string trueAnswerRegex)

构造方法

Methods inherited from think\console\output\Question
__construct, getAutocompleterValues, getDefault, getMaxAttempts, getNormalizer, getQuestion, getValidator, isAssoc, isHidden, isHiddenFallback, setAutocompleterValues, setHidden, setHiddenFallback, setMaxAttempts, setNormalizer, setValidator

Constructor Detail

library\think\console\output\question\Confirmation.php at line 27

__construct

public void __construct(string question, bool default, string trueAnswerRegex)

构造方法

Parameters:
question - 问题
default - 默认答案
trueAnswerRegex - 验证正则

ThinkPHP5